#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
@author:atuo.cn
'''

from tkinter import *
from tkinter.ttk import *
from tkinter.simpledialog import Dialog

from dialogs.dialoghelper import DialogHelper

class SettingsDialogLayout(Dialog, DialogHelper):
    def __init__(self, master, wmtitle):
        Dialog.__init__(self, master, wmtitle)

    #override method of Dialog to create main frame
    def body(self, master):
        frame=LabelFrame(master,text="kindlegen 设置")
        frame.pack(ipady=5,ipadx=5)
        label=Label(frame, text="kindlegen")
        label.pack(anchor=W)
        frame2=Frame(frame)
        frame2.pack(anchor=W)
        self.varKindlegen=StringVar()
        entry=Entry(frame2, textvariable=self.varKindlegen, width=60)
        entry.pack(anchor=W,side=LEFT)
        button=Button(frame2, text="浏览...", command=self._cmdhandler("browse"))
        button.pack(anchor=W,side=LEFT)
        label=Label(frame, text="kindlegen 参数")
        label.pack(anchor=W)
        self.varKindlegenArgs=StringVar()
        entry=Entry(frame, textvariable=self.varKindlegenArgs, width=60)
        entry.pack(anchor=W)

        self._bindEvents()
        self.onLoad()
        self.update_idletasks()
                        
    def _bindEvents(self):
        pass
        
    def onLoad(self):
        pass
